package com.apes.framework.jpa.lock;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 功能：锁重试机制注解
 *
 * @author xul
 * @create 2018-02-11 18:10
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface IsTryAgain {

    /**
     * 重试次数
     */
    int retries() default -1;
}